﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DeklaritModel.CiudadDataSet>" %>


<%@ Import Namespace="System.Data" %>


<table width="100%" class="formPageBody" >
	<tr>
		<td colspan="2">
			<%= Html.ValidationSummary() %>
		</td>
	</tr> 
   <tr>
		<td>
			<%= Html.Hidden("MenuAction") %>
			<%= Html.Hidden("Mode") %>
			<%= Html.Hidden("InstantiatedAttributes") %>
            <%= Html.Hidden("OptionAddedToCombo") %>
			<%  bool? prompt = (bool?)ViewData["Prompt"];   %>
            <%= Html.Hidden("Prompt", prompt) %>
            <%  if (prompt ?? false){
                    string promptAttribute = (string)ViewData["PromptAttribute"];
                    bool? promptReturn = (bool?)ViewData["PromptReturn"];    %>
                <%= Html.Hidden("PromptAttribute", promptAttribute) %>
                <%= Html.Hidden("Prompt_" + promptAttribute, Model == null || Model.Ciudad.Rows.Count == 0 ? (object)null : Model.Ciudad[0][promptAttribute]) %>
			    <%= Html.Hidden("PromptReturn", promptReturn.HasValue && promptReturn.Value ? "true" : "false")%>
            <%  } %>

	<table cellspacing="1" cellpadding="1" border="0">
		<tr>
			
     
     										<td class="nowrapClass smallWidth"     >
     											<label id="lblPaisId1" class="formLabelDescription "  ><%=  Resources.StringResources.CiudadPaisIdDescription %></label>
     											<img alt="key" src="<%= (string)Session["ThemePath"] %>Images/key.gif">
     										</td>
				
			
     
     										<td class="nowrapClass"   >
     											<table cellspacing="1" cellpadding="0" border="0"  >
     												<tr>
     													<td class="nowrapClass" >
     														<%= Html.TextBox("PaisId", Model == null || Model.Ciudad.Rows.Count == 0 ? (object)null : Model.Ciudad[0].PaisId, "formTextNumeric", "5", "5", ((EnumMode)ViewData["Mode"]) != EnumMode.Insert || ViewData["ReadOnly_PaisId"] != null, "formTextView", false, "", false) %>
     													</td>
     													<td valign="baseline" class="nowrapClass" >
     													<!--
     														<* Html.Hidden("txtPromptPaisId") *>
     														
     														<dkweb:DeklaritTextBox runatt="server" id="txtPromptPaisId" ReadOnly="True" CssClass="formText"  Width="0em" Columns="0"  >
     														</dkweb:DeklaritTextBox>
     														-->
     													</td>
     													<td valign="bottom" class="nowrapClass" >
     														<%	if(!(((EnumMode)ViewData["Mode"]) != EnumMode.Insert || ViewData["ReadOnly_PaisId"] != null))
     															{	%>
     														<img id="promptPaisId" onclick="PaisPaisId( this, null );return false;" src="<%= (string)Session["ThemePath"] %>Images/prompt.gif" style="cursor:pointer" />
     														<%	}	%>
     													</td>
     													<td class="nowrapClass" >
     													<!--
     														validador de numero correcto
     														<asp:CompareValidator runatt="server" CssClass="formValidatorLabel" id="ValidateDkTextPaisId" ControlToValidate="txtPaisId" Operator="DataTypeCheck" Type="Integer" ErrorMessage="<IMG src='~/Images/error.gif' border='0' align='absmiddle' alt='Please enter a valid number'>"></asp:CompareValidator>
     														-->
     													</td>
     													<td class="nowrapClass" >
     														<%= Html.ValidationMessage("PaisId", "*", "formValidatorLabel") %>
     														<!--
     														<asp:RequiredFieldValidator runatt="server" CssClass="formValidatorLabel" id="ValidateRequiredDkNumberPaisId" ControlToValidate="txtPaisId" ErrorMessage="<IMG src='~/Images/error.gif' border='0' align='absmiddle' alt='Please enter a valid number'>"></asp:RequiredFieldValidator>
     														-->
     													</td>
     												</tr>
     											</table>
     										</td>
     									
     
				
			<td>
			</td>
		</tr>
		<tr>
			
     
     										<td class="nowrapClass smallWidth"     >
     											<label id="lblPaisNombre1" class="formLabelDescription "  ><%=  Resources.StringResources.CiudadPaisNombreDescription %></label>
     										</td>
				
			
     
     										<td class="nowrapClass"   >
     											<span id="lblPaisNombre" class="formLabel" ><%= Model == null || Model.Ciudad.Rows.Count == 0 || Model.Ciudad[0].IsPaisNombreNull() ? "" : Html.Encode(Model.Ciudad[0].PaisNombre)%></span>
     											<input type="hidden" name="hiddenlblPaisNombre" >
     										</td>
     									
     
				
			<td>
			</td>
		</tr>
		<tr>
			
     
     										<td class="nowrapClass smallWidth"     >
     											<label id="lblPaisMoneda1" class="formLabelDescription "  ><%=  Resources.StringResources.CiudadPaisMonedaDescription %></label>
     										</td>
				
			
     
     										<td class="nowrapClass"   >
     											<span id="lblPaisMoneda" class="formLabel" ><%= Model == null || Model.Ciudad.Rows.Count == 0 || Model.Ciudad[0].IsPaisMonedaNull() ? "" : Html.Encode(Model.Ciudad[0].PaisMoneda)%></span>
     											<input type="hidden" name="hiddenlblPaisMoneda" >
     										</td>
     									
     
				
			<td>
			</td>
		</tr>
		<tr>
			
     
     										<td class="nowrapClass smallWidth"     >
     											<label id="lblCiudadId1" class="formLabelDescription "  ><%=  Resources.StringResources.CiudadCiudadIdDescription %></label>
     											<img alt="key" src="<%= (string)Session["ThemePath"] %>Images/key.gif">
     										</td>
				
			
     
     										<td class="nowrapClass"   >
     											<table cellspacing="1" cellpadding="0" border="0"  >
     												<tr>
     													<td class="nowrapClass" >
     														<%= Html.TextBox("CiudadId", Model == null || Model.Ciudad.Rows.Count == 0 ? (object)null : Model.Ciudad[0].CiudadId, "formTextNumeric", "5", "5", ((EnumMode)ViewData["Mode"]) != EnumMode.Insert || ViewData["ReadOnly_CiudadId"] != null, "formTextView", false, "", false) %>
     													</td>
     													<td class="nowrapClass" >
     													<!--
     														validador de numero correcto
     														<asp:CompareValidator runatt="server" CssClass="formValidatorLabel" id="ValidateDkTextCiudadId" ControlToValidate="txtCiudadId" Operator="DataTypeCheck" Type="Integer" ErrorMessage="<IMG src='~/Images/error.gif' border='0' align='absmiddle' alt='Please enter a valid number'>"></asp:CompareValidator>
     														-->
     													</td>
     													<td class="nowrapClass" >
     														<%= Html.ValidationMessage("CiudadId", "*", "formValidatorLabel") %>
     														<!--
     														<asp:RequiredFieldValidator runatt="server" CssClass="formValidatorLabel" id="ValidateRequiredDkNumberCiudadId" ControlToValidate="txtCiudadId" ErrorMessage="<IMG src='~/Images/error.gif' border='0' align='absmiddle' alt='Please enter a valid number'>"></asp:RequiredFieldValidator>
     														-->
     													</td>
     												</tr>
     											</table>
     										</td>
     									
     
				
			<td>
			</td>
		</tr>
		<tr>
			
     
     										<td class="nowrapClass smallWidth"     >
     											<label id="lblCiudadNombre1" class="formLabelDescription "  ><%=  Resources.StringResources.CiudadCiudadNombreDescription %></label>
     										</td>
				
			
     
     										<td class="nowrapClass"   >
     											<table cellspacing="1" cellpadding="0" border="0"  >
     												<tr>
     													<td class="nowrapClass" >
     														<%= Html.TextBox("CiudadNombre", Model == null || Model.Ciudad.Rows.Count == 0 ? (object)null : Model.Ciudad[0].CiudadNombre, "formText", "20", "20", ((EnumMode)ViewData["Mode"]) != EnumMode.Insert && ((EnumMode)ViewData["Mode"]) != EnumMode.Update || ViewData["ReadOnly_CiudadNombre"] != null, "formTextView", false, "", false) %>
     													</td>
     												</tr>
     											</table>
     										</td>
     									
     
				
			<td>
			</td>
		</tr>
		<tr>
			
				<td>
				</td>		
				
			
				<td>
				</td>		
				
			<td>
			</td>
		</tr>
	</table>
		</td>
	</tr>
	<tr class="formFooter">
		<td colspan="4">
	
			<table cellspacing="2" cellpadding="2" border="0">
				<tr>
					<td valign="bottom" colspan="1">
						<img src="<%= (string)Session["ThemePath"] %>Images/LeftBottom.gif" />
					</td>
					<td>
				<!--		<dkweb:DeklaritImageButton ID="btnConfirm" SkinID="DeklaritImageButton" runatt="server" CausesValidation="True"  Text="Confirm"  ></dkweb:DeklaritImageButton>	-->
					</td>
					<td >
				<!--		<dkweb:DeklaritImageButton ID="btnCancel" SkinID="DeklaritImageButton" runatt="server" CausesValidation="False"  Text="Cancel"  ></dkweb:DeklaritImageButton>	-->
					</td>
					<td valign="bottom" align="right" colspan="1">
						<img src="<%= (string)Session["ThemePath"] %>Images/RightBottom.gif" />
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
